package com.inspur.edp.common.expr.expresses.variable;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.inspur.edp.common.expr.ExprJsonDeserializer;
import com.inspur.edp.common.expr.Express;
import com.inspur.edp.common.type.TypeRefer;
import lombok.Data;

@Data
public class VariableDefExpr implements Express {

    public static final String KIND = "variableDef";

    private String name;

    private TypeRefer type;

    @JsonDeserialize(using = ExprJsonDeserializer.class)
    private Express value;

    @Override
    public String getKind() {
        return KIND;
    }
}
